/* $Header: msg_util.c,v 2.2 01/10/02 10:26:17 przybyls Exp $ */

/***********************************************************************/
/*                                                                     */
/*                  Copyright Hewlett-Packard Co. 1991                 */
/*                                                                     */
/***********************************************************************/

/***********************************************************************/
/* MODULE NAME: msg_util.c                                             */
/* ============                                                        */
/*                                                                     */
/* Author:  Sue Merkel                                                 */
/*                                                                     */
/* MODULE PURPOSE:  This module contains utility functions for the     */
/*                  message subsystem.                                 */
/*                                                                     */
/*                                                                     */
/*                                                                     */
/*                                                                     */
/***********************************************************************/


/*****************************/
/*   GLOBAL INCLUDE FILES    */
/*****************************/

#include  <typedefs.h>
#include  <p_wkfile.h>
#include  <config.h>
#include  <wkfile.h>
#include  <ramps.h>
#include  <zone_config.h>
#include  <zone_status.h>
#include  <status.h>
#include  <display.h>

/*****************************/
/*   LOCAL INCLUDE FILES     */
/*****************************/


/*****************************/
/*   GLOBAL VARIABLES        */
/*****************************/


/*****************************/
/*   EXTERNAL VARIABLES      */
/*****************************/


/*****************************/
/*   LOCAL DEFINES           */
/*****************************/


/*****************************/
/*   STATIC VARIABLES        */
/*****************************/


/*****************************/
/*   IMPLEMENT SECTION       */
/*****************************/



/***********************************************************************/
/* FUNCTION:  MessageToString                                          */
/* ========                                                            */
/*                                                                     */
/* PURPOSE:  This functions takes a message number and returns a       */
/*           pointer to the corresponding message string.              */
/*                                                                     */
/* RETURNED VALUE:  Pointer to BIT8 (unsigned char).                   */
/*                                                                     */
/* GLOBALS USED:  Language, English_Table1, English_Table2,            */
/*                English_Table3, English_Table4                       */
/*                                                                     */
/* LIMITATIONS:  The message numbers (#defines) must be in the order   */
/*               of the corresponding strings in each message table.   */
/*               The #defines keep increasing in number, whereas each  */
/*               message table is an array of pointers to strings, so  */
/*               each table starts at array location 0. The subtraction*/
/*               is done below to access the correct array element.    */
/*                                                                     */
/***********************************************************************/

BIT8 *MessageToString(U_INT16 msg_number)
{
        BIT8 *string;

        switch (Language)
        {
        case ENGLISH:
        default:
                string = (BIT8 *)English_Table[msg_number];
                break;

        /* REVISIT - fill in when we implement local language. */
        case GERMAN:
                string = (BIT8 *)English_Table[msg_number];
                break;

        /* REVISIT - fill in when we implement local language. */
        case SPANISH:
                string = (BIT8 *)English_Table[msg_number];
                break;

        /* REVISIT - fill in when we implement local language. */
        case FRENCH:
                string = (BIT8 *)English_Table[msg_number];
                break;

        /* REVISIT - fill in when we implement local language. */
        case ITALIAN:
                string = (BIT8 *)English_Table[msg_number];
                break;
        }

        return string;
}

/***********************************************************************/
/* FUNCTION:  CheckForPopupDisplay                                     */
/* ========                                                            */
/*                                                                     */
/* PURPOSE:  This function displays a popup message, if there is one.  */
/*                                                                     */
/***********************************************************************/

void CheckForPopupDisplay(void)
{
}
